import axios from '@/utils/axios';

// 获取权限列表
export function role_tree(params = {}) {
  return axios({
    url: '/role/tree',
    method: 'get',
    params
  })
}
// 获取权限列表
export function role_list(params = {}) {
  return axios({
    url: '/role/list',
    method: 'get',
    params
  })
}
// 新增权限列表
export function role_add(data = {}) {
  return axios({
    url: '/role/add',
    method: 'post',
    data
  })
}
// 修改权限列表
export function role_edit(data = {}) {
  return axios({
    url: '/role/edit',
    method: 'put',
    data
  })
}
// 删除权限列表
export function role_del(data = {}) {
  return axios({
    url: '/role/del',
    method: 'delete',
    data
  })
}

